#ifndef __STACK_INT_H__
#define __STACK_INT_H__

typedef struct _Cell {
	int r;
	int c;
}_Cell,*Cell;

typedef _Cell StackCellElementType;
typedef struct {
	StackCellElementType* data;
	int last;
	int capacity;
}_StackCell, * StackCell;

#ifndef ERROR
#define ERROR NULL
#endif

StackCell stack_cell_create(int capacity);
StackCell stack_cell_free(StackCell s);
StackCell stack_cell_push(StackCell s, StackCellElementType x);
StackCellElementType* stack_cell_pop(StackCell s);
int stack_cell_is_full(StackCell s);
int stack_cell_is_empty(StackCell s);

#endif //__STACK_INT_H__